package com.cz.fra.dao;

import java.util.List;

import com.cz.fra.entity.Comment;

public interface CommentDao {

	/**
	 * 
	 * @param comment
	 * @return
	 * @throws EntityNotFoundException
	 * @throws PersistenceException
	 */
	public String addComment(Comment comment) throws EntityNotFoundException, PersistenceException;
	
	/**
	 * 
	 * @param reportId
	 * @return
	 * @throws EntityNotFoundException
	 * @throws PersistenceException
	 */
	public List<Comment> getCommentsByReportID(int reportId) throws EntityNotFoundException, PersistenceException;
	
	/**
	 * Get the number of comments to a certain report, which will be displayed in the report list.
	 * @param reportId
	 * @return
	 * @throws EntityNotFoundException
	 * @throws PersistenceException
	 */
	public int getCommentNoByReportID(int reportId) throws EntityNotFoundException, PersistenceException;
}
